package ${package.Service};

import ${superServiceClassPackage};
import ${package.Entity}.entity.${entity};
import ${package.Entity}.request.${entity}DeleteReq;
import ${package.Entity}.request.${entity}InsertReq;
import ${package.Entity}.request.${entity}PageReq;
import ${package.Entity}.request.${entity}UpdateReq;
import ${package.Entity}.response.${entity}InfoRes;
import ${package.Entity}.response.${entity}PageRes;
import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 * Service
 *
 * @author ${author}
 * @since ${date}
 */
<#if kotlin>
interface ${table.serviceName} : ${superServiceClass}<${entity}>
<#else>
public interface ${table.serviceName} extends ${superServiceClass}<${entity}> {

    /**
     * 分页
     *
     * @param pageReq pageReq
     * @return IPage
     */
    IPage<${entity}PageRes> page(${entity}PageReq pageReq);

    /**
     * 详情
     *
     * @param id id
     * @return ${entity}Info
     */
    ${entity}InfoRes getInfo(Long id);

    /**
     * 新增
     *
     * @param insertReq insertReq
     */
    void insert(${entity}InsertReq insertReq);

    /**
     * 修改
     *
     * @param updateReq updateReq
     */
    void update(${entity}UpdateReq updateReq);

    /**
     * 删除
     *
     * @param deleteReq deleteReq
     */
    void delete(${entity}DeleteReq deleteReq);
}
</#if>
